<?php
class SubscriptionController extends FrontendController
{
    public function actionSend()
    {
        $email = $_REQUEST['email'];

        $this->connection->createCommand("insert into rk_plug_subscription (email) value (:email)")
            ->bindParam(":email",$email)->execute();

        echo json_encode(AppCode::$success);
    }

    public function actionTest(){
        $this->render("../../views.plugin/subscription/test",$this->data);
    }

}